import { request } from '@/utils/request.js'

// 用户查询自己的所有订单
export async function queryUserRecords () {
	return await request({
		url: '/query/user/records',
		method: 'get',
		params: {
			url: '/query/user/records',
			method: 'get',
			params: {
				id: data.id ?? '-1',
				index: data.index ?? 0,
				size: data.size ?? 10
			}
		}
	})
}


// 用户下单
export async function addRecord (data) {
	return await request({
		url: '/query/user/records',
		method: 'post',
		data: {
			id: data?.id ?? '-1'
		}
	})
}
